import Vue from 'vue'
import VueRouter from 'vue-router'

import father from '../components/father.vue'
import todoList from '../components/todoList.vue'
import login from '../components/login.vue'
Vue.use(VueRouter)

const routes = [
 {path:'/father',component:father},
 {path:'/',redirect:'/todo'},
 {path:'/todo',component:todoList},
 {path:'/login',component:login}
]

const router = new VueRouter({
  routes
})

export default router
